package com.future.lock.home.entity.bean;

import com.chad.library.adapter.base.entity.SectionEntity;

import org.json.JSONObject;

/**
 * Created by Administrator on 20517/12/21 0021.
 */

public class LockNotes extends SectionEntity<LockNotes.LockNotesItem> {

    public LockNotes(LockNotesItem lockNotesItem) {
        super(lockNotesItem);
    }

    public LockNotes(boolean isHeader, String header) {
        super(isHeader, header);
    }

    public static class LockNotesItem{
        public String unlock_id;
        public String date;
        public String unlock_user_id;
        public String time;
        public boolean isError;
        public String user;
        public String content;

        public void parse(JSONObject object){
            unlock_id = object.optString("unlock_id");
            date = object.optString("date");
            unlock_user_id = object.optString("unlock_user_id");
            time = object.optString("time");
            user = object.optString("user");
            content = object.optString("content");
            isError = false;
        }
    }
}
